home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Magazine / Online / QMail / source / seek_set.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-15  |  173 b   |  8 lines

  1. #include <sys/types.h>
  2. #include "seek.h"
  3.  
  4. #define SET 0 /* sigh */
  5.  
  6. int seek_set(fd,pos) int fd; seek_pos pos;
  7. { if (lseek(fd,(off_t) pos,SET) == -1) return -1; return 0; }
  8.